home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / ef11.zip / FOLD.HLP < prev    next >
Text File  |  1993-01-20  |  4KB  |  119 lines

  1.  
  2.                    ╔════════════════════════════╗
  3.                    ║   Welcome to ■EasyFold■!   ║
  4.                    ╚════════════════════════════╝
  5.  
  6. This file must be read using the ■EasyFold■ editor.
  7.  
  8. Try looking in the first fold by moving your cursor down to it and typing 
  9. CTRL-PgUp, or if you have a mouse, position the pointer over the fold and 
  10. click the RIGHT HAND button.
  11.  
  12. /*HS!!1*/This is a fold, notice the '>' mark on the left of the screen.
  13.  
  14. Here is the contents of the fold...
  15.  
  16. You can close a fold by typing CTRL-PgDn, or if you have a mouse, position
  17. the mouse pointer within the fold and click the RIGHT HAND button.
  18.  
  19. /*HH121*/Have a look in this next one...
  20.  
  21. /*HS!!2*/This is a 2nd level fold, notice the '»' mark on the left.
  22.  
  23. Notice that when you close the top level fold you will see no trace of 
  24. this fold
  25.  
  26. /*HH232*/This is another fold at level 2
  27.  
  28. The cursor may be positioned before or after the fold character, if it is
  29. before the fold then the cursor will be shown as a solid block.
  30.  
  31. /*HS!!3*/This is a 3rd level fold, notice the number '3' on the left of the screen.
  32.  
  33. This fold will be hidden when you close the 2nd level fold above.
  34.  
  35. /*HH2!2*/This is yet another fold at level 2
  36.  
  37. Sorry there's not much interesting in this one!
  38.  
  39. /*HH1!1*/How to make a fold
  40.  
  41. 1) Go down to the line with the words "top line of fold".
  42. 2) Type CTRL-U. Notice a fold mark '>' appear on the left.
  43. 3) Go to the line "1st line after fold" and type CTRL-U again.
  44. 4) Move the cursor up a line or two so that it is BETWEEN the two fold marks
  45.    and press CTRL-PgDn, the fold will now close.
  46. 5) To make the fold open type CTRL-PgUp. 
  47.  
  48. Last line before fold
  49. Top line of fold
  50. second line in fold
  51. blah blah blah blah blah blah blah blah blah blah blah blah
  52. blah blah blah blah blah blah blah blah blah blah blah blah
  53. blah blah blah blah blah blah blah blah blah blah blah blah
  54. blah blah blah blah blah blah blah blah blah blah blah blah
  55. Last line within fold
  56. 1st line after fold
  57.  
  58. /*HH1!1*/Promotion and demotion
  59.  
  60. To change folds to different levels you must "promote" or "demote" them.
  61. To promote a fold move the cursor on to the fold line and type
  62. <Esc> then <Right>, to demote type <Esc> then <Left>.
  63.  
  64. IMPORTANT: A fold may only be promoted/demoted when it is not in use, ie
  65. it is open and the preceeding fold is open. To release a fold ready for
  66. deleting, type Ctrl-R with the cursor at the fold line.
  67.  
  68. /*HH1!1*/To delete a fold
  69.  
  70. Move the cursor on to the fold line and type Ctrl-D.
  71.  
  72. IMPORTANT: A fold may only be deleted when it is not in use.
  73.  
  74. /*HH1!1*/You can use folds in programs!
  75.  
  76. You can use folds with programs written in 'C', C++, Pascal, Modula 2,
  77. assembler, prolog and some BASICs because the folding information is stored
  78. in the comment style of the language.
  79.  
  80. /*HH1!1*/An example program
  81.  
  82. /*
  83. This 'C' program will compile and run with the folds in.
  84. */
  85.  
  86. main()
  87. {
  88. /*HS!!2*//* local variables */
  89.  
  90.     int i;
  91.  
  92. /*HH2!2*//* print starting messages */
  93.  
  94.     printf("hello world\n");
  95.  
  96.     printf("Here are the numbers from 1 to 10\n");
  97.  
  98. /*HH2!2*//* print numbers from 1 to 10 */
  99.  
  100.     for (i = 1;i <= 10;i++)
  101.     {
  102.         printf("%d\n",i);
  103.     }
  104.  
  105. /*HH2!2*//* print ending messages */
  106.  
  107.     printf("What a silly program!\n");
  108.  
  109.     printf("Bye!\n");
  110.  
  111. /*SH2!2*/}
  112.  
  113. /*HH1!1*/Now you know how to open and close folds...
  114.  
  115. you can read the folded manual "EFMAN.DOC".
  116.  
  117. /*SH1!1*/
  118. /*#CP=00000:XX=99*/
  119.